<?php
    header('Content-type:text/json');
    require "../connection.php";
    $id = $_POST['id'];
    $nick = $_POST['nick'];
    $phone = $_POST['phone'];
    $sex = $_POST['sex'];
    $sql = "update user set user_nick='$nick',user_phone='$phone',user_sex='$sex' where id = '$id'";
    $res = $conn->doSql($sql);
    echo json_encode($res);
?>
